#include <stdio.h>

void main (){
int n1[10];
int n2[10];
int n,i,j,k;

i = j = k = 0;
for(k=0;k<10;k++){
 printf("Digite número:\n");
 scanf("%d",&n);
 if (n%2 == 1){
  n1[i] = n;
  i = i+1;
 }else{
  n2[j] = n;
  j = j+1; 
 } 
}
for(i=i-1;i>=0;i--){
 printf("---\n%d\n",n1[i]);
}
for(j=j-1;j>=0;j--){
 printf("---\n%d\n",n2[j]);
}

}
